package com.gb.demand.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *  消息记录表
 * </p>
 *
 * @author shenzhiwen
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wemall_hnmsg")
@ApiModel(value="消息对象", description="记录消息")
public class HnMsg extends Model<HnMsg> implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "添加时间")
    private Date addTime;

    @ApiModelProperty(value = "消息类型：1 商品新增 2 商品信息变更 3 商品删除 4 价格变更 5 商品上架 " +
            "6 商品下架 7 卖家取消订单 8 配送单生成 9 配送到货 10 配送拒收 11 卖家确认订单 12 订单已开票 13 开票申请结果通知")
    private Integer type;

    @ApiModelProperty(value = "信息")
    private String result;

    @ApiModelProperty(value = "消息状态 1 删除 2正常")
    private Integer state;

}
